{include file="steps/headStep.tpl"}

<h2 class="bigger">Escolha os Atributos Mais Importantes</h2>

{foreach $tablesMeta as $table}


        <div class="block-content">

            {$tbName = $table->getName()|capitalize}

            <h1>{$tbName}</h1>

            <table class="table" cellspacing="0" width="100%">
                <thead>
                    <tr>
                        <th scope="col">Atributo</th>
                        <th scope="col">Selecionar</th>
                    </tr>
                </thead>

                {foreach $table->getAttributes() as $att}

                   <tr>
                        <td>{$att->getName()}</td>
                        <td>
                            <input type="checkbox" name="{$table->getName()}:{$att->getName()}" {if $att->isImportant() || count($table->getAttributes()) < 4}checked="true"{/if}
                                    {if $att->isPrimaryKey()}disabled="true"{/if} value="true"/>
                        </td>
                   </tr>

                {/foreach}

            </table>
        </div>

{/foreach}